<!DOCTYPE html>


<html lang="zn-CH">


<head>
  <meta charset="utf-8" />
    
  <meta name="description" content="What I can do is to Do My Personal Best!" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
    nodejs相关的配置安装 |  小熊的博客
  </title>
  <meta name="generator" content="hexo-theme-yilia-plus">
  
  <link rel="shortcut icon" href="http://www.cdn.adingxiong.com/b5363a06dc744d79a94021492bcefe27" />
  
  
<link rel="stylesheet" href="/blog/dist/main.css">

  
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css">

  
<link rel="stylesheet" href="/blog/css/custom.css">

  
  
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>

  
  

  

<link rel="alternate" href="/blog/atom.xml" title="小熊的博客" type="application/atom+xml">
</head>

</html>

<body>
  <div id="app">
    <main class="content on">
      <section class="outer">
  <article id="post-前端环境配置操作说明" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  nodejs相关的配置安装
</h1>
 

    </header>
    

    
    <div class="article-meta">
      <a href="/blog/2020/04/18/%E5%89%8D%E7%AB%AF%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE%E6%93%8D%E4%BD%9C%E8%AF%B4%E6%98%8E/" class="article-date">
  <time datetime="2020-04-18T05:47:36.282Z" itemprop="datePublished">2020-04-18</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/Hexo/">Hexo</a>
  </div>

      
      
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> Word count:</span>
            <span class="post-count">1.1k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> Reading time≈</span>
            <span class="post-count">4 min</span>
        </span>
    </span>
</div>

      
    </div>
    

    
    
    <div class="tocbot"></div>





    

    
    <div class="article-entry" itemprop="articleBody">
      
      

      
      <h2 id="一、下载安装配置nodejs（包管理工具）"><a href="#一、下载安装配置nodejs（包管理工具）" class="headerlink" title="一、下载安装配置nodejs（包管理工具）"></a>一、下载安装配置nodejs（包管理工具）</h2><p>1.官网下载node.js.安装(<a href="https://nodejs.org/zh-cn/),配置环境变量。配置好后cmd中执行验证npm。" target="_blank" rel="noopener">https://nodejs.org/zh-cn/),配置环境变量。配置好后cmd中执行验证npm。</a></p>
<blockquote>
<p>C:\Users\Administrator&gt;node -v</p>
</blockquote>
<p>2.配置全局模块的安装地址,在D:\nodejs下面建立node_cache,以及D:\nodejs\node_global,在cmd上执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm config set prefix “D:\nodejs\node_global”</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm config set prefix “D:\nodejs\node_cache”</p>
</blockquote>
<p>配置全局安装地址，最后把D:\nodejs\node_global添加到环境变量。</p>
<h2 id="二、下载安装配置webpack（前端打包工具）"><a href="#二、下载安装配置webpack（前端打包工具）" class="headerlink" title="二、下载安装配置webpack（前端打包工具）"></a>二、下载安装配置webpack（前端打包工具）</h2><p>1.cmd执行，全局安装webpack和webpack-cli, 最后后验证：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm install webpack -g</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm install webpack-cli -g</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;webpack -v</p>
</blockquote>
<p>如果显示：“webpack 不是内部或外部命令，也不是可运行的程序或批处理文件。 ”则把webpack安装路径添加到全局变量中。</p>
<p>（默认在nodejs文件夹nodejs\node_global\node_modules中）</p>
<h2 id="三、下载安装配置git"><a href="#三、下载安装配置git" class="headerlink" title="三、下载安装配置git"></a>三、下载安装配置git</h2><p>参考：<br><a href="https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff056ae23da865a000" target="_blank" rel="noopener">https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff056ae23da865a000</a></p>
<h2 id="四、其他安装配置"><a href="#四、其他安装配置" class="headerlink" title="四、其他安装配置"></a>四、其他安装配置</h2><p>1.安装python，配置环境变量，我这里是2.7版本。</p>
<p>2.清理缓存，清空代理，设定淘宝下载库，cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt; npm cache clean –force</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm cache verify</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm config delete proxy  </p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm config set registry  <a href="https://registry.npm.taobao.org/" target="_blank" rel="noopener">https://registry.npm.taobao.org/</a></p>
</blockquote>
<p>3.全局安装node-gyp,cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm install node-gyp -g</p>
</blockquote>
<p>4.全局安装node-sass，cmd中执行 </p>
<blockquote>
<p>C:\Users\Administrator&gt;npm install node-sass -g</p>
</blockquote>
<h2 id="五、项目安装配置"><a href="#五、项目安装配置" class="headerlink" title="五、项目安装配置"></a>五、项目安装配置</h2><p>1.设定外网代理，cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm config set proxy <a href="http://118.112.188.108:9071/" target="_blank" rel="noopener">http://118.112.188.108:9071/</a></p>
</blockquote>
<p>设定本地下载库，cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm config set  registry <a href="http://192.168.17.18:7001/" target="_blank" rel="noopener">http://192.168.17.18:7001/</a></p>
</blockquote>
<p>(设定后可以cmd中执行：<code>npm config get registry</code>和<code>npm config get proxy</code>`验证）</p>
<p>2.全局安装 face-cli脚手架工具，在cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm install face-cli -g</p>
</blockquote>
<p>3.利用脚手架工具 face-cli 初始化项目结构，先在cmd中导入建立项目目录的路径，并初始化项目。可以在cmd中执行:</p>
<blockquote>
<p>C:\Users\Administrator&gt;cd /d E:\gitpro</p>
</blockquote>
<blockquote>
<p>E:\gitpro&gt;face-cli demo master</p>
</blockquote>
<p>4.导入项目，并在项目所在文件夹的路径下执行：</p>
<blockquote>
<p>E:\gitpro&gt;cd demo</p>
</blockquote>
<p>再执行：</p>
<blockquote>
<p>E:\gitpro\demo&gt;npm install</p>
</blockquote>
<p>安装目标依赖</p>
<p>5.安装项目运行依赖工具,cmd中执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm install concurrently -g</p>
</blockquote>
<p>7.运行项目执行：</p>
<blockquote>
<p>E:\gitpro\demo&gt;npm run dev-mock</p>
</blockquote>
<h2 id="六、遇到的问题和解决办法"><a href="#六、遇到的问题和解决办法" class="headerlink" title="六、遇到的问题和解决办法"></a>六、遇到的问题和解决办法</h2><p>1.问题：<br><strong>cmd验证显示：<code>webpack 不是内部或外部命令，也不是可运行的程序或批处理文件。</code></strong></p>
<pre><code>解决办法：
    (1).webpack未配置环境变量;
    (2)全局安装路径设定和环境变量配置出错，重新配置。</code></pre><p>2.问题：<br><strong>下载安装node-sass显示python错误。</strong></p>
<pre><code>解决办法：
    (1)python版本问题；
    (2)python安装和环境变量配置问题。</code></pre><p>3.问题：<br><strong>下载安装node-sass失败。</strong></p>
<pre><code>解决办法：
    (1)node-gyp未安装;
    (2)下载仓库未设置为淘宝仓库。</code></pre><p>4.问题：<br><strong>下载安装项目项目依赖报错：<code>code 404。</code></strong></p>
<pre><code>解决办法：
    仓库和代理没有设置公司地址。</code></pre><p>5.问题：<br><strong>下载安装项目依赖中报错node-sass。</strong></p>
<pre><code>解决办法：
    (1)重新下载node-sass;
    (2)找到node-sass的文件夹。如果有空的版本文件夹，将其他版本文件夹中的win32-x64-64_binding.node文件复制到其中。</code></pre><p>6.问题：<br><strong>下载安装项目依赖报错：<code>json和文件错误。</code></strong></p>
<pre><code>解决办法：
    网速问题，更换流畅网络再输入npm install下载项目依赖。</code></pre><h2 id="七、备注"><a href="#七、备注" class="headerlink" title="七、备注"></a>七、备注</h2><p>1.下载各种工具手脚架和依赖包都不能报错，报错后执行：</p>
<blockquote>
<p>C:\Users\Administrator&gt;npm cache clean –force</p>
</blockquote>
<blockquote>
<p>C:\Users\Administrator&gt;npm cache verify</p>
</blockquote>
<p>清理缓存,也可使用<code>uninstall</code>卸载后重新安装错误文件。</p>
<p>2.注意配置环境变量和全局安装路径。</p>
<p>3.注意哪些文件或依赖下载时需要更改代理和仓库。</p>
<p>4.下载尽量选择流畅的网络，时间较长请耐心等待。如遇到依赖下载卡死的问题可以选择 Ctrl+C键终止进程 清理缓存后重新下载。</p>

      
      <!-- reward -->
      
      <div id="reward-btn">
        Donate
      </div>
      
    </div>
    
    
      <!-- copyright -->
      
        <div class="declare">
          <ul class="post-copyright">
            <li>
              <i class="ri-copyright-line"></i>
              <strong>Copyright： </strong>
              Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
            </li>
          </ul>
        </div>
        
    <footer class="article-footer">
      
          
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://bodboy.gitee.io/blog/2020/04/18/%E5%89%8D%E7%AB%AF%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE%E6%93%8D%E4%BD%9C%E8%AF%B4%E6%98%8E/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/blog/tags/Hexo/" rel="tag">Hexo</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/blog/tags/Sample/" rel="tag">Sample</a></li></ul>


    </footer>

  </div>

  
  
  <nav class="article-nav">
    
      <a href="/blog/2020/04/18/%E5%AF%86%E7%A0%81%E5%8A%A0%E5%AF%86/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            java工具类（MD5加密）
          
        </div>
      </a>
    
    
      <a href="/blog/2020/04/18/%E5%91%BD%E4%BB%A4%E8%A1%8C/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">命令行操作</div>
      </a>
    
  </nav>


  

  
  
<!-- valine评论 -->
<div id="vcomments-box">
    <div id="vcomments">
    </div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src='https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
<script>
    new Valine({
        el: '#vcomments',
        app_id: 'uW8QYGvvhWmNWdiwpznJ0GVa-gzGzoHsz',
        app_key: 'LrJhMzx9qEwcMV1DJjTI6f6C',
        path: window.location.pathname,
        notify: 'false',
        verify: 'false',
        avatar: '[object Object]',
        placeholder: '给我的文章加点评论吧~',
        recordIP: true
    });
    const infoEle = document.querySelector('#vcomments .info');
    if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
        infoEle.childNodes.forEach(function (item) {
            item.parentNode.removeChild(item);
        });
    }
</script>
<style>
    #vcomments-box {
        padding: 5px 30px;
    }

    @media screen and (max-width: 800px) {
        #vcomments-box {
            padding: 5px 0px;
        }
    }

    #vcomments-box #vcomments {
        background-color: #fff;
    }

    .v .vlist .vcard .vh {
        padding-right: 20px;
    }

    .v .vlist .vcard {
        padding-left: 10px;
    }
</style>

  

  
  
  
  
  

</article>
</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2019-2021
        <i class="ri-heart-fill heart_icon"></i> panda
      </li>
    </ul>
    <ul>
      <li>
        
        
        
        Powered by <a href="https://hexo.io" target="_blank">Hexo</a>
        <span class="division">|</span>
        Theme - <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></s>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
        
      </li>
    </ul>
  </div>
</footer>
      <div class="float_btns">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

<div class="todark" id="todark">
  <i class="ri-moon-line"></i>
</div>

      </div>
    </main>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/blog/"><img src="https://portrait.gitee.com/uploads/avatars/user/1007/3023420_bodboy_1578973210.png!avatar200" alt="小熊的博客"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/tags/%E6%97%85%E8%A1%8C/">旅行</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/about">关于我</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/blog/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <script>
      if (window.matchMedia("(max-width: 768px)").matches) {
        document.querySelector('.content').classList.remove('on');
        document.querySelector('.sidebar').classList.remove('on');
      }
    </script>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/blog/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/blog/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/blog/js/jquery-2.0.3.min.js"></script>


<script src="/blog/js/lazyload.min.js"></script>


<script>
  try {
    var typed = new Typed("#subtitle", {
      strings: ['面朝大海，春暖花开', '愿你一生努力，一生被爱', '想要的都拥有，得不到的都释怀'],
      startDelay: 0,
      typeSpeed: 200,
      loop: true,
      backSpeed: 100,
      showCursor: true
    });
  } catch (err) {
  }

</script>




<script src="/blog/js/tocbot.min.js"></script>

<script>
  // Tocbot_v4.7.0  http://tscanlin.github.io/tocbot/
  tocbot.init({
    tocSelector: '.tocbot',
    contentSelector: '.article-entry',
    headingSelector: 'h1, h2, h3, h4, h5, h6',
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: 'main',
    positionFixedSelector: '.tocbot',
    positionFixedClass: 'is-position-fixed',
    fixedSidebarOffset: 'auto'
  });
</script>



<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>

<script src="/blog/dist/main.js"></script>



<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>


<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
      tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
  });

  MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
      for(i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
      }
  });
</script>

<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.6/unpacked/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
  var ayerConfig = {
    mathjax: true
  }
</script>




<script src="/blog/js/busuanzi-2.3.pure.min.js"></script>



<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>

  
<script src="/blog/js/clickLove.js"></script>



<!-- 复制 -->



    
    <div id="music">
    
    
    
    <iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="52"
        src="//music.163.com/outchain/player?type=2&id=1297802566&auto=1&height=32"></iframe>
</div>

<style>
    #music {
        position: fixed;
        right: 15px;
        bottom: 0;
        z-index: 998;
    }
</style>
    
  </div>
</body>

</html>